# locust777


//函数练习5

//比较
int Max(int x,int y)
{
return (x>y)? x : y;
}
//交换
int ch(int* x,int* y)
{
int tmp = 0;
tmp = *x;
*x = *y;
*y = tmp;
}
//加法
int Add(int x,int y)
{
return x + y;
}

#include<stdio.h>
#include<windows.h>
int main()
{
	int a = 0;
	int b = 0;
	scanf("%d%d",&a,&b);
	printf("较大的是%d\n",Max(a,b));
	printf("和是%d\n",Add(a,b));
	printf("交换前a = %d,b = %d\n",a,b);
	ch(&a,&b);
	printf("交换后a = %d,b = %d\n",a,b);
	system("pause");
return 0;
}
